<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>车辆类型管理</title>
<link rel="Stylesheet" href="../css/main.css" type="text/css" />
<script type="text/javascript" src="../js/jquery.js"></script>
<script type="text/javascript" src="../js/Util.js"></script>
<script type="text/javascript" src="../home/js/navbar.js"></script>
<script type="text/javascript" src="../home/js/typeadmin.js"></script>
</head>
<body>
<div class="pagecontent">
	<div class="pagehead">
		{#include_php file='../home/head.php' once=true#}
	</div>
	<div class="pagebody">
		<div class="bodyleft">
			{#include_php file='../home/navbar.php' once=true#}
		</div>		
		<div class="bodyright">
			<h2>车型管理</h2>
			<div class="sepline"></div>
			<div class="bakhellp">
				<p class="msgok">点任意一个添加链接将会进入添加车辆类型界面</p>
				<p class="msgok">点删除将会删除车辆类型</p>
				<p class="msgok">点修改将会进入修改分车辆类型界面</p>
			</div>
			<div>
				<ul class="types">
					<!--{foreach from=$types item=type}-->
					<li>
						<div style="float:left;">{#$type.tname#}</div>
						<div style="float:right;">
							<!--{if $canaddtype}-->
							<a class="_addtype" href="#">添加</a>&nbsp;|&nbsp;
							<!--{/if}-->
							<!--{if $canmodifytype}-->
							<a class="_modifytype" href="nolink.php?tid={#$type.tid#}">修改</a>&nbsp;|&nbsp;
							<!--{/if}-->
							<!--{if $candeletetype}-->
							<a class="_deletetype" href="../home/dodeletetype.php?tid={#$type.tid#}">删除</a>
							<!--{/if}-->
						</div>
						<div style="clear:both;"></div>
					</li>
					<!--{foreachelse}-->
					<li>还没有车辆类型信息呢。点<a class="_addtype" href="#">这里</a>添加</li>
					<!--{/foreach}-->
				</ul>
				<div id="addtype">
					<h2>添加车辆类型</h2>
					<div class="sepline"></div>
					<form style="padding:20px;" action="../home/doaddtype.php" method="post">
						<input type="text" class="textfield" name="tname" />
						<input style="margin-left:50px;" type="submit" class="bgbut" value="添加" />
						<input type="button" class="bgbut" style="margin-left:20px;" value="隐藏" />
					</form>
				</div>
				<div id="modifytype">
					<h2>修改车辆类型</h2>
					<div class="sepline"></div>
					<form style="padding:20px;" action="../home/domodifytype.php" method="post">
						<input type="hidden" name="tid" />
						<input type="text" class="textfield" name="tname" />
						<input style="margin-left:50px;" type="submit" class="bgbut" value="修改" />
						<input type="button" class="bgbut" style="margin-left:20px;" value="隐藏" />
					</form>
				</div>
			</div>
		</div>		
	</div>	
	<div class="pagetail">
	{#include_php file='../home/footer.php' once=true#}
	</div>
</div>
</body>
</html>